package cn.factorybox.item.service;

import cn.factorybox.model.entity.Room;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * @author flypig
 * @version 1.0
 * @date 2020-09-11 11:31
 */
public interface RoomService {
    void saveRoom(HttpServletRequest request, Room room) throws Exception;

    int updateRoom(Room room);

    void deleteRoom(String id);

    Map<String, Object> selectList(Map<String, Object> map);

    List<Room> selectShortList(HttpServletRequest request) throws Exception;

    List<Room> selectNormalList(HttpServletRequest request) throws Exception;

    Map<String, Object> getSingleRoom(HttpServletRequest request, Integer number) throws Exception;
}
